package com.fas.core.constant;
/**
 * 
 * 用户操作类型枚举
 *
 * @Copyright: Copyright (c) 2015 Knight 
 * @anthor yixiaoping<thinker1013@163.com>
 * @since 2015年10月22日 下午11:58:07
 * @version V1.0
 */
public enum OperateType {
        ADD("新增",1), UPDATE("修改",2), DELETE("删除",3) ,VIEW("查看",4);

        private String name;
        private int code;

        OperateType(String name,int code) {
                this.name = name;
                this.code = code;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        
        public int getCode() {
                return code;
        }

        public void setCode(int code) {
                this.code = code;
        }

        public String toString() {
                return this.code+"";
        }
        
}
